import request from '@/utils/request'

// 查询公交票价列表
export function listTicketprice(query) {
    return request({
        url: '/bus/ticketprice/list',
        method: 'get',
        params: query
    })
}

// 查询公交票价详细
export function getTicketprice(id) {
    return request({
        url: '/bus/ticketprice/' + id,
        method: 'get'
    })
}

// 新增公交票价
export function addTicketprice(data) {
    return request({
        url: '/bus/ticketprice',
        method: 'post',
        data: data
    })
}

// 修改公交票价
export function updateTicketprice(data) {
    return request({
        url: '/bus/ticketprice',
        method: 'put',
        data: data
    })
}

// 删除公交票价
export function delTicketprice(id) {
    return request({
        url: '/bus/ticketprice/' + id,
        method: 'delete'
    })
}
